#ifndef WIDGET_H
#define WIDGET_H

#include <QLabel>
#include <QTimer>
#include <QWidget>

QT_BEGIN_NAMESPACE
namespace Ui { class Widget; }
QT_END_NAMESPACE

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

    void initUI();

private slots:
    void on_btnSend_clicked();

    //定时器到期
    bool slot_moveLabel();

    void on_btnStop_clicked();

private:
    Ui::Widget *ui;

    QList<QLabel*> m_lblList; //弹幕列表
    int  m_screenWidth; //屏幕宽
    int  m_screenHeight; //屏幕高
    QTimer *m_timer;   //定时器
};
#endif // WIDGET_H
